[#ftl]

/**
 * 视图类型
 */
    [#list views as view]
/**
 * ${view.comment}
 */
export interface ${view.name} {
    [#list view.fields as field]
    /**
     * ${field.comment}
     */
    ${field.name}[#if !field.required]?[/#if]:${getTsType(field.type)}[#if field.list][][/#if];
        [/#list]
}
[/#list]

    /**
     * 输入类型
     */
    [#list inputs as input]
/**
 * ${input.comment}
 */
export interface ${input.name} {
    [#list input.fields as field]
    /**
     * ${field.comment}
     */
    ${field.name}[#if !field.required]?[/#if]:${getTsType(field.type)}[#if field.list][][/#if];
        [/#list]
}
[/#list]
